package com.nd.pojo.vo;



import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @Description:
 * @author: Aaron
 * @create: 2021-06-06 09:53
 **/
@Data
public class OrderDetailVO {
    private UserBean user;
    private OrderBean order;
    private List<OrderGoodsBean> orderGoods;

    public UserBean getUser() {
        return user;
    }

    public void setUser(UserBean user) {
        this.user = user;
    }

    public OrderBean getOrder() {
        return order;
    }

    public void setOrder(OrderBean order) {
        this.order = order;
    }

    public List<OrderGoodsBean> getOrderGoods() {
        return orderGoods;
    }

    public void setOrderGoods(List<OrderGoodsBean> orderGoods) {
        this.orderGoods = orderGoods;
    }

    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    public static class UserBean {


        private String nickname;
        private String avatar;

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getAvatar() {
            return avatar;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }
    }

    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    public static class OrderBean {
        private int id;
        private int userId;
        private String orderSn;
        private int orderStatus;
        private String consignee;
        private String mobile;
        private String address;
        private String message;
        private BigDecimal goodsPrice;
        private BigDecimal freightPrice;
        private BigDecimal couponPrice;
        private BigDecimal integralPrice;
        private BigDecimal grouponPrice;
        private BigDecimal orderPrice;
        private BigDecimal actualPrice;
        private int comments;
        private Date endTime;
        private Date addTime;
        private Date updateTime;
        private boolean deleted;

    }


    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    public static class OrderGoodsBean {
        private int id;
        private int orderId;
        private int goodsId;
        private String goodsName;
        private String goodsSn;
        private int productId;
        private int number;
        private BigDecimal price;
        private String picUrl;
        private int comment;
        private Date addTime;
        private Date updateTime;
        private boolean deleted;
        private String[] specifications;

    }
}
